Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications and improvements to the base functionalities #9

Merged
merged 57 commits into from
Jan 16, 2024

Conversation

S-Dafarra
Copy link
Member

@S-Dafarra S-Dafarra commented Jan 15, 2024

This is the first of three PRs to merge the modifications done in the humanoidPlanning branch

Among the notable modifications, we have:

  • Added the callback for Opti
  • Definition of OverridableParameter and OverridableVariable. This is to allow defining some set of predefined composite variables, leaving to the user the possibility to decide of the components need to be considered variables or parameters
  • Added the possibility to add expressions for the entire horizon in the MultipleShootingSolver. In order to do this, the OptimalControlProblem outputs also a symbolic structure, where the structure matches the user-defined one, but without being expanded over time.

Note that some modifications to the dependencies will be needed in the following PRs.

@S-Dafarra S-Dafarra self-assigned this Jan 15, 2024
…ng solver

The structure is equivalent to the input structure and should help in simplifying the definition of costs and constraints over the horizon
In multiple shooting solver, exploit the base name in case the initial condition name is not set
This automatically adds the union of the type with a list of the same type
It is also possible to retrieve the guess back once it has been set
@S-Dafarra S-Dafarra force-pushed the humanoidPlanning_base branch from 8e6c919 to a4e4c71 Compare January 15, 2024 12:19
@S-Dafarra
Copy link
Member Author

I have just pruned the history from some useless commit that remained after rebasing

Copy link
Contributor

@traversaro traversaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments.

Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work! I got a bit lost in the logic of using variables names as I never used this functionality firsthand, but I trust your tests on this. I'm glad to see that the pattern using dataclasses with custom metadata is eventually working pretty well providing also a good flexibility.

@S-Dafarra
Copy link
Member Author

Thank you all, merging and moving to the second 😊

@S-Dafarra S-Dafarra merged commit 0d9318f into main Jan 16, 2024
16 checks passed
@S-Dafarra S-Dafarra deleted the humanoidPlanning_base branch January 16, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants